﻿
namespace DotNet.Common.Extensions.Object
{
        /// <summary>
        /// Object对象扩展方法
        /// </summary>
        public static class ObjectExtensions
        {
                /// <summary>
                /// 把Object转为为指定类型的对象
                /// </summary>
                /// <typeparam name="T">类型</typeparam>
                /// <param name="obj">Object对象</param>
                /// <returns>指定类型的实例</returns>
                public static T Cast<T>(this object obj)
                {
                        return (T)obj;
                }
        }
}
